<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>跑客情况</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Runmenanalysis/dispatch_message')}">
        所属团队：
        <select class="select_2" name="formget[company_id]"  style="width: 90px;" >
            <option value='1'{$formget[company_id]==1?selected:''}>全部跑客</option>
            <option value='2'{$formget[company_id]==2?selected:''}>大河跑客 </option>
            <option value='3'{$formget[company_id]==3?selected:''}>直属跑客</option>
            <option value='4'{$formget[company_id]==4?selected:''}>社会跑客</option>
            <option value='5'{$formget[company_id]==5?selected:''}>校园跑客</option>
        </select> &nbsp;
        跑客姓名：<input type="text" name="formget[dispatch_name]" style="width: 100px;" value="{$formget.dispatch_name}">&nbsp;
        跑客电话:<input type="text" name="formget[mobile]" style="width: 100px;" value="{$formget.mobile}">&nbsp;
        跑客状态：
           <select class="select_2" name="formget[is_sign]"  style="width: 90px;" >
            <option value='-1'{$formget[is_sign]==-1?selected:''}}>全部</option>
            <option value='0'{$formget[is_sign]==0?selected:''}>初始状态</option>
            <option value='1'{$formget[is_sign]==1?selected:''}>未签约 </option>
            <option value='2'{$formget[is_sign]==2?selected:''}>已签约</option>
            <option value='3'{$formget[is_sign]==3?selected:''}>解约</option>
        </select> &nbsp;
        签约时间：
        <input type="text" name="formget[sign_time]" class="js-date" value="{$formget.sign_time|default=''}" style="width: 90px;" autocomplete="off">&nbsp;
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    总数：{$total_count}人
    <form method="post" class="js-ajax-form">
        <!--        <div class="table-actions">
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/sign',array('sign'=>1))}" data-subcheck="true">签约</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelsign',array('unsign'=>1))}" data-subcheck="true">取消签约</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/incubator',array('incubator'=>1))}" data-subcheck="true">领取保温箱</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/freezee',array('freezee'=>1))}" data-subcheck="true" data-msg="您确定冻结账户吗？">冻结</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelfreezee',array('cancelfreezee'=>1))}" data-subcheck="true" data-msg="您确定启用账户吗？">启用</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelaudit',array('audit'=>1))}" data-subcheck="true">取消审核</button>
                </div>-->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>所属团队</th>
                <th>所属公司</th>
                <th>跑客姓名</th>
                <th>跑客电话</th>
                <th>身份证</th>
                <th>头像</th>
                <th>跑客状态</th>
                <th>签约时间</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $order_status=array("-1"=>'全部',"0"=>'初始状态',"1"=>'未签约',"2"=>'已签约',"3"=>'解约');
                $company = array("1"=>'全部跑客',"2"=>'大河跑客',"3"=>'直属跑客',"4"=>'社会跑客',5=>'校园跑客');
                $company_branch = array("1"=>'金水区',"2"=>'管城区',"3"=>'中原区',"4"=>'二七区',"5"=>'东区',"6"=>'中州大学',"7"=>'郑州工程技术学院',"8"=>'商专');
            </php>
            <foreach name="lists" item="vo" key="k">
                <tr>
                    <td align="center">{$k+1}</td>
                    <td>{$company[$vo[company_id]]}</td>
                    <td>{$company_branch[$vo[company_branch]]}</td>
                    <td>{$vo.dispatch_name}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.cert_number}</td>
                    <!--       <td>{$dispatchs[$vo['dispatch_id']]['job_number']}</td>
                           <td>{$dispatchs[$vo['dispatch_id']]['dispatch_name']}</td>
                           <td>{$dispatchs[$vo['dispatch_id']]['mobile']}</td>-->
                    <td><img src="{$vo.avatar}" width="100px" height="100px"></td>
                    <td>{$order_status[$vo[is_sign]]}</td>
                    <td>{$vo.sign_time}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($lists)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>